/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.semi.lex;

/**
 *
 * @author liaoyichang
 */
public class IntToken extends Token{
    protected int value_i;
    public IntToken(){
        super(Token.INT,"");
    }
    public IntToken(String v){
        super(Token.INT,v);
        value_i = Integer.parseInt(v);
    }
    public IntToken(int v){
        super(Token.INT,Integer.toString(v));
        value_i = v;
    }
    public int Value(){ return value_i; }
}
